home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / screen.cc < prev    next >
C/C++ Source or Header  |  1995-02-22  |  510b  |  37 lines

  1. /*    Copyright Alex Hornby 1994/1995. All rights reserved.
  2.      See file README for details
  3. */
  4.  
  5. #include "screen.h"
  6. #include <vga.h>
  7.  
  8. pixel* Screen::gmem;
  9. int Screen::scrwidth=320;
  10. int Screen::scrheight=200;
  11.  
  12. Screen::Screen(void)
  13. {
  14.         if(gmem==0)
  15.                 gmem=vga_getgraphmem();
  16. }
  17.  
  18. void
  19. Screen::copy(const Screen& s)
  20. {
  21.     gmem=s.gmem;
  22.     scrwidth=s.scrwidth;
  23.     scrheight=s.scrheight;
  24. }
  25.  
  26. Screen::Screen(const Screen& s)
  27. {
  28.     copy(s);
  29. }
  30.  
  31. Screen&
  32. Screen::operator=( const Screen &s)
  33. {
  34.     copy(s);
  35.     return *this;
  36. }
  37.